
from flask import Flask, request
from flask_sqlalchemy import SQLAlchemy


db = SQLAlchemy()

def create_app():
    app = Flask(__name__)
    app.config.from_object('config')
    db.init_app(app)

    from .auth import auth as auth_blueprint
    from .home import home as home_blueprint

    app.register_blueprint(auth_blueprint)
    app.register_blueprint(home_blueprint, static_folder='static')

    return app